From 41f26ea7a65f4dd3001ebcd79b4a21825529d43b Mon Sep 17 00:00:00 2001 From: Matthias Clasen Date: Sat, 26 Aug 2017 15:34:46 -0400 Subject: [PATCH] wayland: Stop using subsurfaces for popovers Subsurfaces don't currently work with our new rendering, and this makes popovers unusable. We can go back to using subsurfaces for popovers when this is fixed. --- gtk/gtkpopover.c | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/gtk/gtkpopover.c b/gtk/gtkpopover.c index 3f787fd9a1..84f034bb18 100644 --- a/gtk/gtkpopover.c +++ b/gtk/gtkpopover.c @@ -475,7 +475,11 @@ gtk_popover_realize (GtkWidget *widget) gtk_widget_get_window_allocation (widget, &allocation); -#ifdef GDK_WINDOWING_WAYLAND + /* We want to use subsurfaces for popovers, so they can extend outside + * the main window, but for that, we first need to have clean subsurface + * support that works with GSK. + */ +#if 0 if (GDK_IS_WAYLAND_DISPLAY (gtk_widget_get_display (widget))) { GtkWidget *toplevel = gtk_widget_get_toplevel (widget); -- 2.30.2